[data-control="pendulumTriangle"] .drag-n-draw-image-recorder {
  position: relative;
  width: 100%;
  height: 100%;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace {
  width: 100%;
  height: 100%;
  user-select: none;
  z-index: 1;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace #drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .transform-origin {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  background-color: rgba(255, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  box-sizing: border-box;
  animation: widget-pendulumTriangle-pointBg 2s infinite;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .transform-origin::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  top: 0;
  left: calc(50% - 1px);
  background-color: #333;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .transform-origin::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  top: calc(50% - 1px);
  left: 0;
  background-color: #333;
}

@keyframes widget-pendulumTriangle-pointBg {
  0% {
    background-color: rgba(255, 0, 0, 0.5);
  }

  50% {
    background-color: rgba(255, 255, 255, 0.5);
  }

  100% {
    background-color: rgba(255, 0, 0, 0.5);
  }
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace.editing .image-container {
  box-shadow: 0 0 0 1px lightgray;
  pointer-events: auto;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container {
  position: absolute;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container .rotate-btn {
  display: none;
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 50px;
    height: 50px;
    /* border-radius: 50%;
    background-color: #7900ff47; */
    background-image: url(../images/rotate.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container-active {
  box-shadow: 0 0 0 2px #52cbfc
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container .resizer {
  display: none;
  width: 20px;
  height: 20px;
  border: 1px solid #999;
  background: #fff;
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: 9;
  cursor: nwse-resize;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container.isResize .resizer {
  display: block;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container.rotating .rotate-btn {
  display: block;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .workspace .image-container area {
cursor: pointer;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .tips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  color: red;
  z-index: 9;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .image-selector .image-container {
  display: inline-block;
  width: 100px;
  height: 100px;
  line-height: 100px;
  font-size: 0;
  vertical-align: top;
  text-align: center;
  background: rgba(211, 211, 211, 0.6);
  margin: 10px;
  border: 4px solid white;
  box-sizing: content-box;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .image-selector .image-container.selected {
  border-color: #52cbfc;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .image-selector .image-container img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .image-selector .image-container area {
cursor: pointer;
}
[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .preset-tools {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 2;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder button {
  padding: 10px 16px;
  cursor: pointer;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder button.active {
  background-color: #52cbfc;
  color: white;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 4;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .body {
  max-height: calc(100% - 80px);
  overflow: auto;
  background-color: white;
  box-sizing: border-box;
  border: 2px solid white;
  border-width: 2px 0;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .image-props {
  display: block;
  width: 500px;
  padding: 1em;
  background-color: white;
  margin: 20px auto;
  line-height: 2;
  font-size: 16px;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .image-props > [data-prop] {
  margin-top: 10px;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  color: red;
  border-width: 0 1px 1px 1px;
  border-style: solid;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .answer-selector .answer {
  position: relative;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .answer-selector .answer.selected::after {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 28px;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .exported-data {
  background-color: white;
  padding: 10px;
  margin-top: 10px;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .color-options {
  width: 250px;
  margin: 0 auto;
  margin-top: 40px;
  background-color: white;
  padding: 10px 0 0 10px;
  font-size: 0;
  line-height: 0;
  border-radius: 2px;
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .color-square.selected {
  box-shadow: 0 0 4px 1px rgba(0, 90, 255, 1);
}

[data-control="pendulumTriangle"] .drag-n-draw-image-recorder .modal .color-square {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid gray;
  box-sizing: border-box;
  margin: 0 10px 10px 0;
  cursor: pointer;
}
[data-control="pendulumTriangle"] .recordStroke {
  width: 30px;
  height: 30px;
  position: absolute;
  border-radius: 50%;
  background: rgb(255,255,153);
  display: none;
  z-index: 9;
}
